<?php
namespace App\Traits;

use App\Models\FakeList;

Trait Trait26_29 {

    public function liftName()
    {
        $data = [
            'name' => 'XX电梯',
            '设备编号' => random_int(12345, 99999),
            '设备厂家' => 'XXXXX',
            '安装位置' => 'XXXXX',
            '安装日期' => '2024-10-12',
            '品牌型号' => 'XXXXX',
            '质保电话' => 'XXXXXXX'
        ];
        $responseJson = [
            'code' => 200,
            'message' => '',
            'data' => $data
        ];
        return response()->json($responseJson);
    }

    public function troubleShooting()
    {
        $liftWhere = [
            '10组1座1#',
            '10组1座2#',
            '10组1座3#',
            '10组2座1#'
        ];
        $liftList = [
            '2024-5-3 20:56' => '10组1座1#故障警告',
            '2024-4-13 20:56' => '10组2座1#部件检修',
            '2024-4-3 20:56' => '10组1座1#保养检修',
        ];
        $data = [
            'liftWhere' => $liftWhere,
            'liftList' => $liftList
        ];
        $responseJson = [
            'code' => 200,
            'message' => '',
            'data' => $data
        ];
        return response()->json($responseJson);
    }

}
